package postTest.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PrintUser {

    @PostMapping("/print.cc/{id}")
    public String sayUser(@PathVariable("id") Integer id){
        return "当前请求的用户....."+id+"号";
    }

    @PostMapping("/postSay.cc")
    public String postSay(){
        return "post接口调用了,嘿嘿";
    }

}
